package acceptance;



/**
 * @author reut
 * class that loads the correct bridge
 */
public class AcceptanceDriver {

	/**
	 * AcceptanceDriver class -class that loads the correct bridge
	 */
	private AcceptanceDriver()
	{}


	/**
	 * @return {@link RealBridge} if implemented,
	 *         {@link ProxyBridge} otherwise
	 */
	public static IBridge getCorrespondingBridge() {
		if (RealBridge.IMPLEMENTED)
			return new RealBridge();
		else
			return new ProxyBridge();
	}


}
